home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #3 / Amiga Plus CD - 1997 - No. 03.iso / pd / programmierung / vbcc / machines / amiga68k / libsrc / extra / iswhitespace.c < prev    next >
Encoding:
Text File  |  1996-10-25  |  264 b   |  17 lines

  1. /*
  2. ** iswhitespace() - check if char is "space", "tab" or "return".
  3. **
  4. ** Made by Kasper B. Graversen (c) 1996
  5. **
  6. ** This is freeware - use at own risc.
  7. */
  8.  
  9. int iswhitespace(int c)
  10. {
  11.     if(c == '\n' || c == '\t' || c == ' ')
  12.         return(1);
  13.  
  14.     return(0);
  15. }
  16.  
  17.